User Interface
This is how the counter program running on a NXT looks initially. Each time the right button is pressed, the count increments by one. Each time the left button is pressed, the count decrements by one. The screen is reset to all zeros anytime the center button is pressed. The biggest number that can be displayed is 999. If you were to press the right button when 999 was displayed, the count would roll over to all zeros.

This is how the screen looks after the right button has been pressed 42 times starting from all zeros.
If you press the left button when zero is displayed, the count rolls over to all nines. This shows how the screen looks after pressing left button 13 times starting from all zeros.
The counter can show as few as one digit, or ...
... it can show as many as five digits.